package com.netease.nie.controllers;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.netease.nie.base.controllers.BaseController;
import com.netease.nie.dto.HorseRaceLampDto;
import com.netease.nie.facade.HorseRaceLampFacade;

@RestController
@RequestMapping("/api")
public class HorseRaceLampController extends BaseController {

	@Autowired
	private HorseRaceLampFacade horseRaceLampFacade;
	
	@RequestMapping(value = "/horse_race_lamp_list", method = RequestMethod.GET, produces = "application/json")
	public String horseRaceLampList() throws Exception {
		List<HorseRaceLampDto> horseRaceLampDtos = horseRaceLampFacade.queryHorseRaceLampDtos();
		return jsonSuccess(horseRaceLampDtos);
	}
}
